package com.nd.mapper;

import com.nd.entity.Cart;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Select;

import java.awt.*;
import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author yangqixing
 * @since 2024-12-25
 */
public interface CartMapper extends BaseMapper<Cart> {
    @Select("select cart.*,product.id as pid,img,taste,pname,price,old_price from cart,product where cart.product_id=product.id and desk_id=#{deskId}")
    List<Cart> getListByDeskId(Integer deskId);
}
